Component({
  properties: {
    recipeId: {
      type: String,
      value: ''
    },
    recipeInfo: {
      type: Object,
      value: {}
    },
    isOwner: {
      type: Boolean,
      value: false
    }
  },
  methods: {
    onEdit() {
      this.triggerEvent('edit', { recipeInfo: this.data.recipeInfo }); // 触发编辑事件并传递菜谱信息
    },
    onDelete() {
      this.triggerEvent('delete'); // 触发删除事件
    }
  }
}); 